package com.smarkparking.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonRawValue;
import com.fasterxml.jackson.databind.annotation.JsonValueInstantiator;
import lombok.Data;

import java.util.Date;


/**
 * @author 刘涛
 * @create 2021/11/17 14:35
 */
@Data
@TableName("orders")
public class Order {
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    private String orderNumber;
    private String name;
    private String email;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy年MM月dd日 HH:mm:ss")
    private Date entryTime;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy年MM月dd日 HH:mm:ss")
    private Date outTime;
    private String licensePlateNumber;
    private Double orderPrice;
    private Integer orderState;
    private String parkingSpaceNumber;
}
